]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Emit 'hidden' after it's *really* hidden
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 17 Sep 2020 07:24:12 +0000 (15:24 +0800)
committerDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 19 Aug 2021 07:44:34 +0000 (15:44 +0800)
Previously we would emit 'hidden' before the overview was fully hidden,
so any attempts to animate windows on that signal could still fail.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>

js/ui/overview.js

index 12b966927262303171eb4e2679fdbe4b3d6865c1..87bf835b03fd49dd1fad8eea71c85e893cbf4e05 100644 (file)
@@ -609,12 +609,14 @@ var Overview = class {
         this._visible = false;
         this._animationInProgress = false;
 
-        this.emit('hidden');
         // Handle any calls to show* while we were hiding
-        if (this._shown)
+        if (this._shown) {
+            this.emit('hidden');
             this._animateVisible(OverviewControls.ControlsState.WINDOW_PICKER);
-        else
+        } else {
             Main.layoutManager.hideOverview();
+            this.emit('hidden');
+        }
 
         Main.panel.style = null;